package com.b511.swpu.cementbackend.entity;

import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Range;

import javax.persistence.*;
import javax.validation.constraints.Min;

@Entity
@Getter
@Setter
@Accessors(chain = true)
// 井身结构表
public class WellBoreStructure extends CementBaseEntity {

    private Double holeSize;

    private Double holeDepth;

    @Column(length = 20)
    private String casingType;

    private Double casingSize;

    private Double casingDepth;

    @Column(length = 20)
    private String steelGrade;

    @Column(length = 20)
    private String buckleType;

    private Double cemRtnDepth;

    private Double hoopDepth;

    @ManyToOne
    @JoinColumn(name = "borehole_id")
    private Borehole borehole;
}
